
music_table1 = \
(
    ("0=7",),
    #16
    ("0=1/4", "0=1/16", "3=1/16", "3=1/8", "2=1/16", "2=1/16", "3=1/16", "3=1/16"),

    #9
    ("1B:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A=1/8", "1A:1A=1/16", "1A=1/8", "1B,3:1A:1A=1/8"),
    ("1B:1A:1A=1/8", "1A,3=1/8", "1A:1A=1/16", "1A=1/8"),
    ("1A:1A:1A=1/8", "1B,3:1A:1A=1/8"),

    #13
    ("1B=1/8", "1A:1A=1/16", "1A=1/8", "1A,3:1B:1B=1/8"),
    ("1A=1/8", "1A:1A=1/16", "1A=1/8", "1B,3:1A:1A=1/8"),
    ("1B:1A:1A=1/8", "0=3/8"),
    ("0=3/4",),

    #17
    ("1B:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A=1/8", "1A:1A=1/16", "1A=1/8", "1A,3:1A:1A=1/8"),

    #21
    ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A=1/8", "1A:1A=1/16", "1A=1/8", "1A,3:1A:1A=1/8"),

    #25
    ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A=1/8", "1A:1A=1/16", "1A=1/8", "1A,3:1A:1A=1/8"),

    #29
    ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1A,3:1B:1B=1/8"),
    ("1B:2:S2=1/8", "2:2:S2:S2:4:4=1/16"),
    ("3=1/8", "0=1/8", "3:3=1/16", "3:2:3=1/8"),

    #33
    ("1B:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1B,3:1A:1A=1/8"),
    ("1B:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1B,3:1A:1A=1/8"),

    #37
    ("1B:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A=1/8", "1A:1A=1/16", "1A=1/8", "1B,3:1A:1A=1/8"),
    ("1B:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A=1/8", "3:3=1/16", "2=1/8", "1A,3:1A:1B=1/8"),

    #41
    ("1B:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1B,3:1A:1A=1/8"),
    ("1B:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    ("1A:1A:1A=1/8", "1B,3:2:S2=1/8"),

    #45
    ("1B:1A:1A=1/8", "1B:1A:1A=1/8"),
    ("1B:1A:1A=1/8", "1B:1A:1A=1/8"),
    ("1B=3/4",),
    ("0=5/16", "3=1/16", "3=1/8", "2:2=1/16", "3=1/8"),

    # #49
    # ("0=15/4"),

    # #54
    # ("0=1/4", "0=1/16", "3=1/16", "3=1/8", "2=1/16", "2=1/16", "3=1/16", "3=1/16"),

    # #55
    # ("1B:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    # ("1A=1/8", "1A:1A=1/16", "1A=1/8", "1B,3:1A:1A=1/8"),
    # ("1B:1A:1A=1/8", "1A,3=1/8", "1A:1A=1/16", "1A=1/8"),
    # ("1A:1A:1A=1/8", "1B,3:1A:1A=1/8"),

    # #59
    # ("1B=1/8", "1A:1A=1/16", "1A=1/8", "1A,3:1B:1B=1/8"),
    # ("1A=1/8", "1A:1A=1/16", "1A=1/8", "1B,3:1A:1A=1/8"),
    # ("1B:1A:1A=1/8", "0=3/8"),
    # ("0=3/4",),

    # #63
    # ("1B:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    # ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    # ("1A:1A:1A=1/8", "1A,3:1A:1A=1/8"),
    # ("1A=1/8", "1A:1A=1/16", "1A=1/8", "1A,3:1A:1A=1/8"),


)

music_table2 = \
(
    ("0=7",),
    ("0=3/4",),
    #9
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "0=1/4", "5:5=1/8"),
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "5:0=1/8", "5:5=1/8"),

    #13
    ("5:0=1/4", "5:5=1/8"),
    ("5=1/4", "5:0=1/8", "5:5=1/8"),
    ("5=1/4", "0=1/2"),
    ("0=3/4",),

    #17
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "0=1/2"),
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "0=1/2"),

    #21
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "0=1/2"),
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "0=1/2"),

    #25
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "5=1/8", "0=3/8"),
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "5=1/8", "0=3/8"),    

    #29
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "0=2/8", "5:5=1/8"),
    ("5=1/4", "0=1/2"),
    ("0=3/4",),   

    #33
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "5:0=1/8", "5:5=1/8"),
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "5=1/8", "0=3/8"),

    #37
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "5:0=1/8", "5:5=1/8"),
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "5:0=1/8", "5:5=1/8"),

    #41
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "5:0=1/8", "5:5=1/8"),
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "5=1/8", "0=3/8"),

    #45
    ("5=1/4", "0=3/8", "5=1/8"),
    ("5=1/4", "5:0=1/8", "5:5=1/8"),
    ("5=3/4",),
    ("0=3/4", ),

)

import sys
sys.path.append('../../src')
if __name__ == "__main__":
    import drumKit.music_translate as music_translate
    music_parse = music_translate.music_trans([music_table1, music_table2], beat=96)
    music_parse.music_to_play_table()
    music_parse.play_music()